import request from '@/utils/request'

// 查询聊天内容列表
export function listCommunication(query) {
  return request({
    url: '/ido/communication/list',
    method: 'get',
    params: query
  })
}

// 查询聊天内容详细
export function getCommunication(id) {
  return request({
    url: '/ido/communication/' + id,
    method: 'get'
  })
}

// 新增聊天内容
export function addCommunication(data) {
  return request({
    url: '/ido/communication',
    method: 'post',
    data: data
  })
}

// 修改聊天内容
export function updateCommunication(data) {
  return request({
    url: '/ido/communication',
    method: 'put',
    data: data
  })
}

// 删除聊天内容
export function delCommunication(id) {
  return request({
    url: '/ido/communication/' + id,
    method: 'delete'
  })
}

// 导出聊天内容
export function exportCommunication(query) {
  return request({
    url: '/ido/communication/export',
    method: 'get',
    params: query
  })
}